<extend name="Layout:base"/>

<block name="title">管理员管理</block>
<block name="css">

</block>
<block name="xtyhgl">active</block>
<block name="glygl">active</block>
<block name="menu">
    <h5 class="breadcrumbs-title">管理员管理</h5>
    <ol class="breadcrumbs">
        <li><a href="{:U('Admin/Index/index')}">首页</a>
        </li>
        <li class="active">管理员管理
        </li>
    </ol>
</block>

<block name="main">
    <div class="col s12 l12 m12">
        <a class="waves-effect waves-light btn green" href="{:U('Admin/UserMag/addAdmin')}">添加管理员</a>
    </div>
    <div class="row">
        <div class="col s12 m12 l12">
            <table class="striped centered responsive-table">
                <thead>
                <tr>
                    <th data-field="id">No</th>
                    <th data-field="name">管理号</th>
                    <th data-field="price">姓名</th>
                    <th data-field="price">操作</th>
                </tr>
                </thead>

                <tbody>
                <volist name="ret" id="vo">
                    <tr>
                        <td>{$i}</td>
                        <td>{$vo.adminid}</td>
                        <td>{$vo.name}</td>
                        <td>
                            <a class="waves-effect waves-light btn green"
                               href="{:U('Admin/UserMag/editAdmin',array('id'=>$vo[id]))}">修改</a>
                            <a class="waves-effect waves-light btn red"
                               href="{:U('Admin/UserMag/delAdmin',array('id'=>$vo[id]))}">删除</a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </div>
</block>